package com.csg.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.csg.dao.TcMapper;
import com.csg.entity.Game;
import com.csg.entity.Tc;
import com.csg.service.TcService;



@Service
@Transactional
public class TcServiceImpl implements TcService{
	//注入dao
	@Autowired
	private TcMapper tcMapper;

	
	@Override
	public Tc selectTcById(int id) {
		Tc tc = this.tcMapper.selectTcById(id);
		return tc;
		
	}


	@Override
	public boolean updateTc(Tc tc) {
		boolean result=this.tcMapper.updateTc(tc);	
		return result;
	}

	@Override
	public boolean deleteTc(Integer id) {
		boolean result = this.tcMapper.deleteTc(id);
		return result;
	}

	@Override
	public boolean addTc(Tc tc) {
		boolean result = this.tcMapper.addTc(tc);
		return result;
	}

	@Override
	public List<Tc> selectTcByModule(Integer module) {
		List<Tc> tc = this.tcMapper.selectTcByModule(module);
		return tc;
	}
	@Override
	public List<Game> selectTcByModule1(Game game) {
		List<Game> result = this.tcMapper.selectTcByModule1(game);
		return result;
	}

	@Override
	public List<Tc> selectTcByModule2(Integer module) {
		List<Tc> tc = this.tcMapper.selectTcByModule2(module);
		return tc;
		
	}
	@Override
	public List<Tc> selectTcByModule22(Integer module) {
		List<Tc> tc = this.tcMapper.selectTcByModule22(module);
		return tc;
	}


	@Override
	public List<Tc> selectTcByModule3(Integer module) {
		List<Tc> tc = this.tcMapper.selectTcByModule3(module);
		return tc;
	}
	@Override
	public List<Tc> selectTcByModule33(Integer module) {
		List<Tc> tc = this.tcMapper.selectTcByModule33(module);
		return tc;
	}


	@Override
	public List<Tc> selectTcByModule4(Integer module) {
		List<Tc> tc = this.tcMapper.selectTcByModule4(module);
		return tc;
	}
	@Override
	public List<Tc> selectTcByModule44(Integer module) {
		List<Tc> tc = this.tcMapper.selectTcByModule44(module);
		return tc;
	}


	@Override
	public List<Tc> selectTcByModule5(Integer module) {
		List<Tc> tc = this.tcMapper.selectTcByModule5(module);
		return tc;
	}
	@Override
	public List<Tc> selectTcByModule55(Integer module) {
		List<Tc> tc = this.tcMapper.selectTcByModule55(module);
		return tc;
	}


	@Override
	public List<Tc> selectTcByModule6(Integer module) {
		List<Tc> tc = this.tcMapper.selectTcByModule6(module);
		return tc;
	}
	@Override
	public List<Tc> selectTcByModule66(Integer module) {
		List<Tc> tc = this.tcMapper.selectTcByModule66(module);
		return tc;
	}


	@Override
	public List<Tc> selectTcByModule7(Integer module) {
		List<Tc> tc = this.tcMapper.selectTcByModule7(module);
		return tc;
	}
	@Override
	public List<Tc> selectTcByModule77(Integer module) {
		List<Tc> tc = this.tcMapper.selectTcByModule77(module);
		return tc;
	}


	@Override
	public List<Tc> selectTcByModule8(Integer module) {
		List<Tc> tc = this.tcMapper.selectTcByModule8(module);
		return tc;
	}
	@Override
	public List<Tc> selectTcByModule88(Integer module) {
		List<Tc> tc = this.tcMapper.selectTcByModule88(module);
		return tc;
	}


	@Override
	public List<Game> selectCompitition(Game game) {
		List<Game> result = this.tcMapper.selectCompitition(game);
		return result;
	}


	@Override
	public boolean updateGame(Game game) {
		boolean result=this.tcMapper.updateGame(game);	
		return result;
	}


	@Override
	public Game selectGameById(Integer id) {
		Game game = this.tcMapper.selectGameById(id);
		return game;
	}


	@Override
	public boolean deleteGame(Integer id) {
		boolean result = this.tcMapper.deleteGame(id);
		return result;
	}


	@Override
	public boolean addGame(Game game) {
		boolean result = this.tcMapper.addGame(game);
		return result;
	}


	


	


	


	


	


	

	
	

}
